import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class SharePage extends StatelessWidget {
  const SharePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text("分享元素界面"),
        ),
        body: Stack(
          fit: StackFit.expand,
          children: [
            Hero(
                tag: "imgShare",
                child: Image.network(
                  "https://www.wanandroid.com/blogimgs/50c115c2-cf6c-4802-aa7b-a4334de444cd.png",
                  width: 80,
                  height: 80,
                )),
            Positioned(
                width: 80,
                height: 80,
                bottom: 10.0,
                right: 10.0,
                child: Container(
                  child: Hero(
                      tag: "imgShare2",
                      child: Image.network(
                        "https://www.wanandroid.com/blogimgs/50c115c2-cf6c-4802-aa7b-a4334de444cd.png",
                      )),
                ))
          ],
        ));
  }
}
